package com.manong.service;

import com.github.pagehelper.PageInfo;
import com.manong.domain.Warehouse;
import com.manong.query.WarehouseQueryObject;
import com.manong.vo.GoodsWarehouseVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

// MenuService.java 接口
public interface WarehouseService {

    PageInfo query(WarehouseQueryObject queryObject);

    void delete(Integer id);

    void saveOrUpdate(Warehouse warehouse);

    void update(Warehouse warehouse);

    @Transactional
    void save(Warehouse warehouse);

    Warehouse get(Integer id);

    int getTotalWarehouseCount();

    List<Warehouse> getWarehousesByManager(Integer manager);

    List<GoodsWarehouseVo> getGoodsInWarehouse(Integer warehouseId);
}
